home *** CD-ROM | disk | FTP | other *** search
- ===============================================================================
-
- ROBODoc v0.92
-
- -------------------------------------------------------------------------------
-
- (c) 1995, by Jacco van Weert, Maverick Software Development
- email: weertj@euronet.nl
-
- ROBODoc documentation for the;
- Amiga computers.
- DEC Alpha systems.
- DEC VAX systems.
-
- New versions of ROBODoc are made available on AmiNet.
-
- or
-
- On the Amigoline BBS;
- Tel: +31-8347-84968 (International)
- Tel: 08347-84968 (From the Netherlands)
-
- ===============================================================================
-
-
-
- Preface
- -------
-
- The complete ROBODoc archive is copyrighted by Jacco van Weert,
- Maverick Software Development.
-
- ROBODoc can be freely distributed on FREEWARE base as long as all files remains
- in there original state, no files may be added to the archive, and also no files
- may be excluded.
-
- This software is provided on an "AS IS" basis without warranty of any kind. The
- author is not responsible for any damage caused by using this software.
-
-
- Hardware requirements
- ---------------------
-
- Amiga version:
- ROBODoc runs well on every Amiga, no special requirements are necessary.
-
- DEC Alpha/VAX:
- ROBODoc v0.92 has been tested on a DEC Alpha system using OpenVMS-AXP
- v1.5, but in general terms there should be no problem to run this
- program on other systems. It is a general C program.
-
-
- Introduction
- ------------
-
- ROBODoc is based on the AutoDocs program written some time ago by Commodore.
- The idea is to include for every procedure/function a standard header
- containing all sorts of information about that procedure/function.
- ROBODoc will extract those headers from the source file and put them in a
- autodocs-file. This autodocs-file can be written in three different formats;
-
- - Normal format;
- The autodocs-file is just a plain ASCII text-file, this file is very
- closely related to the one that the original AutoDocs program would
- generated.
-
- - HTML format;
- The autodocs-file will be written as a HTML-file (HyperText Markup
- Language), this format is used on the WWW-Internet. By using a
- Mosiac/Netscape program you view the documentation. In v0.5 of
- ROBODoc this option will produce a very basic HTML-file, new versions
- will produce a far more better result.
-
- - AmigaGuide format;
- This is a format used on the Amiga computers to view in a HyperText
- way a text-file. The AmigaGuide (OS3.0 tags are supported) program
- is necessary to view the resulting autodocs-file.
-
-
- This Version
- ------------
-
- As you probably noticed this version has still a beta-number (v0.8). This
- means not that the program is not finished, but it means that I have not
- implemented all the functions I wish to. And of course the program could
- still have some bugs.
-
-
- Procedure/Function Header
- -------------------------
-
- We shall now discuss the general format of a procedure/function header.
- Full discussion of the header can be found in AutoDocs-documentation, this
- is a brief explanation of the header and the ROBODoc special items.
-
- ROBODoc handles three different type of headers;
-
- - MainProgram header (optional);
- These headers are placed at the start of a program and containing
- some general information about the program. These where not
- available in the original AutoDocs program.
-
- - Normal header;
- The normal header, available to the general public.
-
- - Internal header;
- The internal header not available to the general public, mainly
- used by the programmer him/herself.
-
-
-
- MainProgram header
- ------------------
-
- We now discuss an example of a MainProgram header. The following header was
- taken from the original ROBODoc program.
-
- /****h* AUTODOC/ROBODoc ***************************************************
- *
- * NAME
- * ROBODoc -- AutoDoc formatter
- *
- * COPYRIGHT
- * Maverick Software Development
- * This software is public domain and can be freely redistributed as
- * long as it is in it's original state.
- *
- * FUNCTION
- * ROBODoc is indented as a replacement for the original AutoDocs program
- * ROBODoc will extract from a source file the procedure comment headers
- * and put them in a seperate documentation file. There are basically
- * three different file outputs, Basic (Normal text based)/ HTML
- * Markup langauge mainly used on the Internet thus the files can be viewed
- * with a normal Mosaic viewer/ and finally AmigaGuide format, this format
- * can be viewed by an AmigaGuide program (AMIGA ONLY).
- *
- * AUTHOR
- * Jacco van Weert
- *
- * CREATION DATE
- * 20-Dec-94
- *
- * MODIFICATION HISTORY
- * 25-Jan-94 - v0.92: First version
- *
- * NOTES
- * None
- *
- ****************************************************************************
- */
-
- Because the program was written in C the header is in this form, in assembler
- or other langauges it would look a little bit different.
- MOST IMPORTANT is that the first line of the header must be reconized by the
- ROBODoc program. Therefore is the following rule;
-
- The first character is not important.
- The next 4 characters must be asterics '*'.
- The next character defines the header type;
- 'h' = MainProgram
- '*' = Normal header
- 'i' = Internal header
- Then follows 1 asteric '*' and 1 space.
- After this follows the [module name]/[procedure name]
-
- Example:
-
- In C -> /****h* programs/greatprogram.library *********
- or /****** greatprogram.library/program_init ******
- or /****i* greatprogram.library/very_secret *******
- In Assembler
- -> ;****h* programs/greatprogram.library ********
- -> ******* greatprogram.library/program_init ******
- -> *****i* greatprogram.library/internal_affairs *****
-
- The header ends with a following line;
-
- *********..etc
- or
- ;********..etc
- or
- %********..etc
-
- In general the first character of the line is not important.
-
-
- But now back to the MainProgram header, it has the following items;
-
- NAME - The name of the program.
- COPYRIGHT - The copyright note.
- FUNCTION - The general function of the program.
- AUTHOR - The author of the program (very important :)
- CREATION DATE - When did you started?
- MODIFICATION HISTORY - All the changed made to the program.
- NOTES - General notes.
-
- Important is that all items have the same indent. It is not necessary
- to include all items, ROBODoc will add the missing items.
-
-
-
- Normal header
- -------------
-
- The normal header differs not from the original AutoDoc header which we
- will give here;
-
- /****** financial.library/StealMoney ******************************************
- *
- * NAME
- * StealMoney -- Steal money from the Federal Reserve Bank. (V77)
- *
- * SYNOPSIS
- * error = StealMoney( userName,amount,destAccount,falseTrail )
- * D0,Z D0 D1.W A0 [A1]
- *
- * BYTE StealMoney
- * ( STRPTR,UWORD,struct AccountSpec *,struct falseTrail *);
- *
- * FUNCTION
- * Transfer money from the Federal Reserve Bank into the specified
- * interest-earning checking account. No records of the transaction
- * will be retained.
- *
- * INPUTS
- * userName - name to make the transaction under. Popular favorites
- * include "Ronald Reagan" and "Mohamar Quadaffi".
- * amount - Number of dollars to transfer (in thousands).
- * destAccount - A filled-in AccountSpec structure detailing the
- * destination account (see financial/accounts.h).
- * If NULL, a second Great Depression will be triggered.
- * falseTrail - If the DA_FALSETRAIL bit is set in the destAccount,
- * a falseTrail structure must be provided.
- *
- * RESULT
- * error - zero for success, else an error code is returned (see
- * financial/errors.h). The Z condition code is guaranteed.
- *
- * EXAMPLE
- * Federal regulations prohibit a demonstration of this function.
- *
- * NOTES
- * Do not run on Tuesdays!
- *
- * BUGS
- * Before V88, this function would occasionally print the address and
- * home phone number of the caller on local police 976 terminals.
- * We are confident that this problem has been resolved.
- *
- * SEE ALSO
- * CreateAccountSpec(),security.device/SCMD_DESTROY_EVIDENCE,
- * financial/misc.h
- *
- *****************************************************************************/
-
- Again it is not necessary to include all items.
-
-
- Internal header
- ---------------
-
- The same as the Normal header, except the internal header starts with the line
- /****i* or ;****i* or *****i* or......
-
-
- Usage of ROBODoc
- ----------------
-
- To list the arguments needed by ROBODoc just enter ROBODoc or ROBODoc ?
- To following message will be printed;
-
- ROBODoc v0.92, autodocs formatter
- ==============================================
- (c) 25-1-95, Maverick Software Development
- Written by J.v.Weert, email: weertj@euronet.nl
- FORMAT
- ROBODoc filename docfilename [HTML] [GUIDE] [INTERNAL] [SORT] [TOC] [XREF]
-
- The parameters;
-
- filename = The source code filename.
- docfilename = The name of the documentation file,
- which will be created.
- HTML = The documentation will be in HTML format.
- GUIDE = The documentation will be in AmigaGuide format.
- INTERNAL = The internal headers are also included.
- SORT = The procedures will be sorted.
- TOC = A table of contents will be added. TOC will be
- automatically set when HTML or GUIDE is set.
- XREF = This option will enable the AutoXREF mode:
- In the current version it will only references the
- procedures and functions used within the same
- document.
-
- CONCLUSION
- ----------
-
- Remember that this is a pre-release, and a lot of options I want to
- include are not included in this version (for example an automatic XREF that
- will create references across many different files).
- I release this to get (hopefully) some feedback about the functions and
- options which are wanted, but only a message that you use or want to use
- ROBODoc is enough.
-
-
- SUGGESTIONS EN BUGS
- -------------------
-
- Suggestions and bug reports (please use the included Bug-report form) can
- be send to;
-
- Email: weertj@euronet.nl
-
- or
-
- Maverick Software Development, T.a.v. J.v.Weert
- Haverdreef 131,
- 7006 LH, Doetinchem.
- The Netherlands.
-
-
- __ __________
- __/ \/ / weertj@euronet.nl
- __/ \__/ Maverick
- / \__/ \ Software
- \__/ \__/ Development
- _______________/ slothoub@xs4all.nl
-
-
-